package zl.ordermanager.service;

import java.util.List;

import zl.ordermanager.vo.DataGrid;
import zl.ordermanager.vo.ERoles;
import zl.ordermanager.vo.PageHelper;
import zl.ordermanager.vo.SessionInfo;
import zl.ordermanager.vo.User;

public interface UserService {

	public User login(User user);

	public DataGrid<User> dataGrid(PageHelper pageHelper);

	public User get(Integer id);
	
	public User getByUsername(String username);
	
	public List<User> getList(ERoles role);

	public void add(User user) throws Exception;

	public void edit(User user) throws Exception;

	public void delete(Integer id);

	public boolean editCurUserPwd(SessionInfo sessionInfo, String oldPwd, String pwd);

}
